X-Git-Url: https://git.r.bdr.sh/rbdr/super-polarity/blobdiff_plain/74c155708d85abfc2cf227c08de4f27003015b3f..b587e9d8e0cc5eb1edf972fd3b644704441e5289:/Super%20Polarity/Actors/Bullet.cs diff --git a/Super Polarity/Actors/Bullet.cs b/Super Polarity/Actors/Bullet.cs index 5a7be03..d20289c 100644 --- a/Super Polarity/Actors/Bullet.cs +++ b/Super Polarity/Actors/Bullet.cs @@ -29,6 +29,7 @@ namespace SuperPolarity BoxDimensions.Y = 10; BoxDimensions.W = 10; BoxDimensions.Z = 10; + MaxVelocity = 8; InitBox(); particleEngine = ParticleEffectFactory.CreateBullet(position); } @@ -66,7 +67,14 @@ namespace SuperPolarity protected override void Die() { ActorManager.CheckOut(this); + Renderer.CheckOut(this); Parent.Children.Remove(this); } + + public override void CleanUp() + { + base.CleanUp(); + this.particleEngine = null; + } } }